//
//  ToolTableViewCell.m
//  NewProject
//
//  Created by apple on 2018/5/31.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "ToolTableViewCell.h"

@implementation ToolTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)buttonAction:(id)sender {
    UIButton* button = (UIButton*)sender;
    NSInteger buttonIndex = 0;
    switch (button.tag) {
        case 101:
            buttonIndex = 1;
            break;
        case 102:
            buttonIndex = 2;
            break;
        case 103:
            buttonIndex = 3;
            break;
        case 104:
            buttonIndex = 4;
            break;
        default:
            break;
    }
    if (self.actionBlock) {
        self.actionBlock(buttonIndex);
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
